<?php

    require('config.php');
    require('print-cases.php');
    
    // Send Request to set Current Filter
    $result = $fb->setCurrentFilter('99'); //($_GET['filter_id']);
        
    // Send Request to Get Cases
    $result = $fb->getCases(null,'sTitle,dtDue',$_GET['num']);
    
    // Print cases to screen
	printFilters($result);
	//echo $result;
    
    /*
        $result will contain the XML reply from the FogBugz API (as a string).
        You may want to add functionality to parse this as needed, etc...
    */
?>